package com.fishsticks.model;

import android.app.Application;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MyApplication extends Application 
{
	private DatabaseManager dbManager;
    private static MyApplication INSTANCE;
    
    public static MyApplication getInstance() {
    	return INSTANCE;
    }
    
    @Override
    public void onCreate() {
    	super.onCreate();
    	INSTANCE = this;
    	dbManager = new DatabaseManager(this);
    }

	public SQLiteOpenHelper getDatabase() {
		return dbManager;
	}

}
